package com.topisv.tms.repository.notice;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.notice.Notice;
import com.topisv.tms.entity.notice.NoticeReader;


public interface NoticeReaderDao extends PagingAndSortingRepository<NoticeReader, Long>,JpaSpecificationExecutor<NoticeReader> {
	
	
	@Query("select f from NoticeReader f where f.jobuuid = ?")
	NoticeReader findByJobuuid(String jobuuid);
	@Query("select f from NoticeReader f where f.jobuuid = ? and f.noticeId = ?")
	NoticeReader findByJobuuidAndId(String jobuuid,String noticeId);
	
}
